The online racing simulator
Searching in All forums
(951 results)
Yisc[NL]
S3 licensed
I always wonder why people don't use the search function first.
With the right wording, you would have found that along with the Register system, I also made a Ban system.

Find the script here: https://www.lfs.net/forum/post/1921021#post1921021
Yisc[NL]
S3 licensed
Quote from burogok :Hello I need the introduction about the entry system.
The code I have created to see the information of the users who are registered to Servere is not working. Please correct or please help me

The code you have created? Taped Shut
Are you 100% sure of that? Confused

As it very much looks like the code I have written for the Registration system: https://www.lfs.net/forum/post/1927566#post1927566

The only thing you seem to have written, are some translations for messages and buttons and the !editrecord case, which shouldn't be needed if you are using the Registration system as that function is already build into the code.

I like to hear what isn't working (please show errors in logfile or some screenshots, as much information as you have) and I will try to help, but please, don't say it's your code anymore.
Last edited by Yisc[NL], .
Yisc[NL]
S3 licensed
Registration system - V1.14 (to add an extra layer of protection against unwanted people on your server)

Changelog:

- Fixed a bug when loading 'REGISTER_COUNTER' when value is empty
- Fixed a bug that prevented an admin to create an account for him self
- Removed a piece of obsolete code that was already commented out
- Force admin to login, after creating his own account
- Force admin to create an account of his own (could be skipped in last version, caused trouble)

Change the extension of the files to .lpr and add them to addonsused.lpr to be able to use it.
Yisc[NL]
S3 licensed
Yes, that's possible and should go in the 'OnResult' event.
Something like this:

GlobalMsg ( "^7The race is finished now" );

GlobalMsg means the chatmessage is send to every player that's connected at the moment the event is executed.
Yisc[NL]
S3 licensed
By the looks of this: https://www.lfs.net/forum/thread/78605
It was available in Lapper at some point, but as far as I can tell, it isn't available in the current Lapper version.

*edit*

It seems I linked to the whole thread, instead of to the actual post I wanted to link to, so here it is: https://www.lfs.net/forum/post/1733795#post1733795
Last edited by Yisc[NL], .
Yisc[NL]
S3 licensed
It's rather weird to put a request on a forum and then say 'no one' after 7 minutes of creating the thread.
It's not like the world is waiting for someone to ask a question and then jump into action immediately.
Having said that, I don't mind someone being a demo player and/or just have made an account on this forum, but I do mind people showing the efforts they put in themselfs.
Show the code you wrote, show any errors from the log file (if there is any of course) and even while English isn't your first language, try to state your question as clear as possible.
All this will help others to get the correct view of what you want and what you already did to accomplish what you want.
Yisc[NL]
S3 licensed
No, you should look at file 'LFSLapper.lpr' which can be found in the 'default' folder.
Yisc[NL]
S3 licensed
Quote from Popughini :To me it has not worked, to put the command does nothing the lights

If you would have read carefully, you would have noticed that it isn't working online.
A packet has to be implemented into Lapper, to be able to use those commands.
Yisc[NL]
S3 licensed
Have you activated the Drift sections in the main Lapper script?
Some parts of the script are turned off by either a # at the start of the line or /* at the start of the section and */ at the end of it.
Which means that all the code between those tags, isn't executed.
Yisc[NL]
S3 licensed
You need to download the Lapper script(s) you want and put them in the 'includes' folder.
Then you need to open the file called 'addonsused.lpr' and add the name(s) of the script(s) you want to activate.
Like this: include( "./access_screen.lpr");
After you changed and stored the file, you need to restart Lapper.
Yisc[NL]
S3 licensed
Completely unclear what the question is.
You are talking about a retired Cruise System and then link to Insim Wiki.
Yisc[NL]
S3 licensed
I have manualy activated the account made by truckloader on the AB.nl website.
We do have a problem with sending mail, so please drop a message here (or privately to me) stating the name of the created account and I will activate it manualy as well.
Yisc[NL]
S3 licensed
Quote from Popughini :Thanks, it worked for me, but what I wanted was for the text to appear on a button ....

I already said it was a RCM and not a text on a button, but the code I gave, should be more then enough to be able to put the text on a button.
We can't do all the work for you Wink
Yisc[NL]
S3 licensed
I wrote this code to send messages to everyone on the server.
The text isn't appearing in a button though, but as a Race Control Message.


<?php 
CatchEvent OnMSO
$userName$text # Player event
    
$idxOfFirtsSpace indexOf$text" ");

    IF( 
$idxOfFirtsSpace == -THEN
      $command 
$text;
      
$argv "";
    ELSE
      
$command subStr$text,0,$idxOfFirtsSpace );
      
$argv trimsubStr$text,$idxOfFirtsSpace ) );
    ENDIF

    SWITCH( 
$command )
        CASE 
"!msg":
            IF( 
UserInGroup"admin"$userName ) == )
            
THEN
              openPrivButton
"send_msg",52,0,48,5,5,-1,32,"^3Click to resend message: %nl%" .GetCurrentPlayerVar ("message"),rcm_msg );
              
openPrivButton"write_send_msg_bg",100,0,48,10,5,-1,32,"" );
              
openPrivTextButton"write_send_msg",100,5,48,5,5,0,"^3Write message and click OK (max. 50 characters)","^2Click to type and send a message",50,rcm_written_msg );
              
openPrivButton"close_msg",148,0,10,10,5,-1,32,"^1X",close_msg );
            ELSE
              
privMsg"^1You are not allowed to open that");
            ENDIF
            BREAK;
    ENDSWITCH
EndCatchEvent

Sub rcm_written_msg 
$KeyFlags $message )
    
SetCurrentPlayerVar ("message""^2".$message);

    
cmdLFS "/rcm ^2" $message );
    
cmdLFS "/rcm_all" );
    
openPrivButton"send_msg",52,0,48,5,5,-1,32,"^3Resend message: %nl%^8" .GetCurrentPlayerVar ("message"),rcm_msg );
EndSub

Sub rcm_msg 
$KeyFlags $argv )
    
cmdLFS "/rcm ^2" GetCurrentPlayerVar "message" ) );
    
cmdLFS "/rcm_all" );
EndSub

Sub close_msg 
$KeyFlags $argv )
    
closePrivButton "send_msg&write_send_msg_bg&write_send_msg&close_msg" );
EndSub
?>


Yisc[NL]
S3 licensed
Handicap system - V1.14 (tool to set handicaps for 5 different classes (or subclasses) and 4 different cars)

Changelog:

-Added checks on saving HCS and set values to 0 if needed

Change the extension of the file to .lpr and add them to addonsused.lpr to be able to use it.
Yisc[NL]
S3 licensed
Great project you have going on there.
I really admire your dedication to keep things going, despite the set backs you had.
Hopefully all the efforts will pay off in the end for you.
Yisc[NL]
S3 licensed
Quote from Popughini :And a table of the highest speeds, you can do?

This isn't a request topic and before you will start a new topic about it, yes that's possible to do with Lapper and no, I won't do it for you.
Yisc[NL]
S3 licensed
Thank you Smile
Yisc[NL]
S3 licensed
Quote from Popughini :Hi Yisc, could you make a drift points table please?
Something similar to the PB table you have done

No, that isn't possible, because Lapper doesn't have a GetTopList for Drift function (yet).
The request you made, has been asked in the past as well.

Question: https://www.lfs.net/forum/post/1903097#post1903097

Answer: https://www.lfs.net/forum/post/1903170#post1903170
Yisc[NL]
S3 licensed
As said, it's the same as shown in the schedule script.
Instead of changing track, you need to load a layout:

cmdLFS("/end");
cmdLFS("/axload [name of layout]");
Yisc[NL]
S3 licensed
The error means that an invalid number of arguments is send to function 'semaforo3' or that an invalid number of arguments is tried to receive in that function.
If you can't find that error, which is no problem, then it's best to show the whole script, so others might find the problem.
Yisc[NL]
S3 licensed
Yes, changing layouts is possible using any schedule.
Yisc[NL]
S3 licensed
Have a look in the thread with all my scripts and then focus on 'Schedule' and Set Schedule' scripts.
Those can be used to change track, at a given date, but it wouldn't be too hard to figure out to change layout every X time if you take these scripts for inspiration.

https://www.lfs.net/forum/thread/84505-Yisc%27s-code-release
Yisc[NL]
S3 licensed
Quote from Bass-Driver :Tongue

Yisc[NL] , could you try to run LFSLapper locally? Because that packet i showed can only be run locally.
Will see when i have time to implement this packet Tongue

This script works fine when Lapper is run LOCALY:

CatchEvent OnMSO( $userName, $text ) # Player event

$idxOfFirtsSpace = indexOf( $text, " ");
IF( $idxOfFirtsSpace == -1 ) THEN
$command = $text;
$argv = "";
ELSE
$command = subStr( $text,0,$idxOfFirtsSpace );
$argv = trim( subStr( $text,$idxOfFirtsSpace ) );
ENDIF

SWITCH( $command )

CASE "!lights":
LightsOn ( 0,0 );
BREAK;
ENDSWITCH
EndCatchEvent

Sub LightsOn( $KeyFlags, $id )
cmdLFS("/press 3");
DelayedCommand(1, LightsFlashToOff);
EndSub

Sub LightsOn_2 ()
cmdLFS("/press 3");
DelayedCommand(1, LightsFlashToOff);
EndSub

Sub LightsFlashToOff()
cmdLFS("/press 3");
DelayedCommand(1, LightsOn_2);
EndSub

Yisc[NL]
S3 licensed
Ah, there's the master to show us the light.
I've just tried every trick in my book to get it working and failed misserably.
Now I know why, not possible (yet) Smile
FGED GREDG RDFGDR GSFDG